package com.openbravo.data.gui;

import java.awt.Component;
import java.awt.Graphics;
import javax.swing.Icon;

public class CompoundIcon
  implements Icon
{
  private Icon m_icon1;
  private Icon m_icon2;

  public CompoundIcon(Icon paramIcon1, Icon paramIcon2)
  {
    this.m_icon1 = paramIcon1;
    this.m_icon2 = paramIcon2;
  }

  public int getIconHeight()
  {
    return Math.max(this.m_icon1.getIconHeight(), this.m_icon2.getIconHeight());
  }

  public int getIconWidth()
  {
    return this.m_icon1.getIconWidth() + this.m_icon2.getIconWidth();
  }

  public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2)
  {
    this.m_icon1.paintIcon(paramComponent, paramGraphics, paramInt1, paramInt2);
    this.m_icon2.paintIcon(paramComponent, paramGraphics, paramInt1 + this.m_icon1.getIconWidth(), paramInt2);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.data.gui.CompoundIcon
 * JD-Core Version:    0.6.0
 */